package com.meilai.project.service.business.contract;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.dto.business.contract.ProxyMediaDetailReq;
import com.meilai.project.entity.business.contract.ProxyMediaDetail;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xchen
 * @since 2022-04-13
 */
public interface ProxyMediaDetailService extends IService<ProxyMediaDetail> {

	void saveDetails(int type, Long bizId, List<ProxyMediaDetailReq> list);

	/**
	 * @param type  1: 合同，2：销售单
	 * @param bizId 单据ID
	 */
	List<ProxyMediaDetailReq> query(int type, Long bizId);

	/**
	 * @param type  1: 合同，2：销售单
	 * @param bizIdList 单据ID列表
	 */
	Map<Long,List<ProxyMediaDetailReq>> queryByIds(int type, List<Long> bizIdList);
}
